//
//  AddYunDanMainModel.h
//  ReceiptDelivery
//
//  Created by 吕晶 on 2020/9/17.
//  Copyright © 2020 吕晶. All rights reserved.
//

#import <Foundation/Foundation.h>
@class AddYunDanCangKuModel;
@class AddYunDanWuLiuCompanyModel;
@class AddYunDanTiHuoBillModel;
@class AddYunDanTiHuoGoodModel;
@class AddYunDanTiHuoAddressModel;
@class AddYunDanFaHuoAddressModel;
@class LadingRequireMainModel;

NS_ASSUME_NONNULL_BEGIN

@interface AddYunDanMainModel : NSObject

@property (nonatomic, strong) NSMutableArray <AddYunDanWuLiuCompanyModel *>*wuLiuCompanyArray;//物流公司数组
@property (nonatomic, strong) AddYunDanWuLiuCompanyModel *selectCompany;


@end

@interface AddYunDanWuLiuCompanyModel : NSObject

@property (nonatomic, copy) NSString *Id;//物流公司id
@property (nonatomic, copy) NSString *name;//物流公司名称
@property (nonatomic, strong) NSMutableArray <AddYunDanCangKuModel *>*pl_warehouse;//物流公司下的仓库列表
@property (nonatomic, strong) AddYunDanCangKuModel *selectCangKu;

@end

@interface AddYunDanCangKuModel : NSObject

@property (nonatomic, copy) NSString *w_id;//中转仓库id
@property (nonatomic, copy) NSString *name;//中转仓库名称
@property (nonatomic, copy) NSString *dp_num;//该仓库下的提货单数
@property (nonatomic, assign) BOOL selected;//true=选中  false=未选中


@property (nonatomic, strong) NSMutableArray <AddYunDanTiHuoBillModel *>*tiHuoBillArray;
@property (nonatomic, strong) NSMutableArray <AddYunDanFaHuoAddressModel *>*faAddressArray;//发货地址
@property (nonatomic, strong) AddYunDanTiHuoAddressModel *shouAddress;//收货地址
@property (nonatomic, strong) LadingRequireMainModel *requireModel;

@end

@interface AddYunDanTiHuoBillModel : NSObject

@property (nonatomic, copy) NSString *dp_id;//提货单id
@property (nonatomic, copy) NSString *serial_num;//提货单号
@property (nonatomic, assign) BOOL selected;
@property (nonatomic, strong) NSMutableArray <AddYunDanTiHuoGoodModel *>*list;

@end

@interface AddYunDanTiHuoGoodModel : NSObject

@property (nonatomic, copy) NSString *g_id;//货物id
@property (nonatomic, copy) NSString *pro_num;//货物编号
@property (nonatomic, copy) NSString *name;//货物名称
@property (nonatomic, copy) NSString *packType;//包装名称
@property (nonatomic, assign) int takeNum;//收容数
@property (nonatomic, copy) NSString *weight;//重量
@property (nonatomic, copy) NSString *volume;//体积
@property (nonatomic, assign) int num;//数量
@property (nonatomic, assign) int pnum;//件数
@property (nonatomic, assign) int default_num;//默认数量
@property (nonatomic, assign) int default_jnum;//默认件数
@property (nonatomic, copy) NSString *default_weight;//默认重量
@property (nonatomic, copy) NSString *default_volume;//默认体积
@property (nonatomic, assign) BOOL selected;//编辑时用到  false=未选中  true=选中
@property (nonatomic, assign) BOOL isOpen;

@end

@interface AddYunDanTiHuoAddressModel : NSObject

@property (nonatomic, copy) NSString *Id;//收货地址id
@property (nonatomic, copy) NSString *c_id;//客户id tl_customer的id
@property (nonatomic, copy) NSString *s_id;//供货id shippers的id
@property (nonatomic, copy) NSString *receiving_name;//收货单位名称
@property (nonatomic, copy) NSString *addrs;//收货地址详细地址
@property (nonatomic, copy) NSString *tel_name;//联系人
@property (nonatomic, copy) NSString *phone;//联系方式

@end

@interface AddYunDanFaHuoAddressModel : NSObject

@property (nonatomic, copy) NSString *w_id;//仓库id
@property (nonatomic, copy) NSString *name;//仓库名称
@property (nonatomic, copy) NSString *province;//省id
@property (nonatomic, copy) NSString *city;//市id
@property (nonatomic, copy) NSString *town;//区镇id
@property (nonatomic, copy) NSString *info;//街道详细信息
@property (nonatomic, copy) NSString *liaison;//联系人
@property (nonatomic, copy) NSString *tel;//联系号码
@property (nonatomic, copy) NSString *addrs;//提货单详细地址

@end

NS_ASSUME_NONNULL_END
